package org.plex.searchfilter.imp;

import java.util.Date;

import org.plex.searchfilter.DateFilter;

import com.adobe.idp.taskmanager.dsc.client.query.DateFilterImpl;

public class DateFilterImp implements DateFilter
{

	private com.adobe.idp.taskmanager.dsc.client.query.DateFilter dateFilter;

	public com.adobe.idp.taskmanager.dsc.client.query.DateFilter getDateFilter()
	{
		return dateFilter;
	}

	public void setDateFilter(
			com.adobe.idp.taskmanager.dsc.client.query.DateFilter dateFilter)
	{
		this.dateFilter = dateFilter;
	}

	public DateFilterImp()
	{
		this.dateFilter = new DateFilterImpl();
	}

	public DateFilterImp(
			com.adobe.idp.taskmanager.dsc.client.query.DateFilter dateFilter)
			throws NullPointerException
	{

		if (null == dateFilter)
		{
			throw new NullPointerException();
		}
		this.dateFilter = dateFilter;
	}

	public void greaterThan(Date newDate, boolean isInclusive)
	{
		this.dateFilter.greaterThan(newDate, isInclusive);
	}

	public void lessThan(Date newDate, boolean isInclusive)
	{
		this.dateFilter.lessThan(newDate, isInclusive);
	}

	public void setGreaterThanDate(Date newDate)
	{
		this.dateFilter.setGreaterThanDate(newDate);
	}

	public void setGreaterThanInclusive(boolean isInclusize)
	{
		this.dateFilter.setGreaterThanInclusive(isInclusize);
	}

	public void setLessThanDate(Date newDate)
	{
		this.dateFilter.setLessThanDate(newDate);
	}

	public void setLessThanInclusive(boolean isInclusize)
	{
		this.dateFilter.setLessThanInclusive(isInclusize);
	}

}
